<include file="common/header" />


<div class="main-container">
    <div class="container" id="wrap-detail">
        <div class="row mb10">
            <div class="col-xs-8">
                <h1 class="detail-title mb15">{$deal_info.name}</h1>

                <div>
                    <span class="mr10">发起人：{$deal_info.user_name}</span>
                    <span>{$deal_info.province}{$deal_info.city}</span>
                </div>
            </div>
            <div class="col-xs-4 text-right">
                <if condition="($user.id neq $deal_info['user_id'])">
                    <if condition="($deal_info.end_time lt $now) AND ($deal_info.end_time neq 0)">
                        <button class="ui-btn ui-btn-blue btn-support mr10 ui-btn-disabled">
                            <i class="glyphicon glyphicon-star"></i><span>支持</span>
                        </button>
                        <else/>
                        <button class="ui-btn ui-btn-blue btn-support mr10" data-toggle="modal" data-target=".modal-support">
                            <i class="glyphicon glyphicon-star"></i><span>支持</span>
                        </button>
                    </if>
                <button class="ui-btn <if condition="($fav_status eq 1)">ui-btn-disabled<else />ui-btn-red</if> btn-like" id="add-like" data-id="{$deal_info.id}"><i class="glyphicon glyphicon-heart"></i><span class="like-text"><if condition="($fav_status eq 1)">不再喜欢<else />喜欢</if></span></button>
                </if>
            </div>
            <div class="modal modal-support" tabindex="-1" role="dialog"  aria-hidden="true">
                <div class="modal-dialog dialog-support">
                    <div class="modal-content">
                        <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal"><i class="glyphicon glyphicon-remove"></i></button>
                        <div class="modal-support-head">
                            选择你的支持项目
                        </div>
                        <div class="modal-support-content">
                            <volist name="deal_item_list" id="vo" key="k">
                                <div class="support-item <if condition="($support_full gt 1)">support-full</if>">
                                <div class="clearfix mb15">
                                    <span class="pull-left support-money">￥{$vo.price_format}</span>
                                    <if condition="($deal_info.end_time lt $now) AND ($deal_info.end_time neq 0)">
                                        <a class="ui-btn btn-support ui-btn-blue pull-right mt10 ui-btn-disabled">项目过期</a>
                                        <else/>
                                        <a <if condition="($vo.support_full eq 0)">href="/cart.html?id={$vo.id}"</if> class="ui-btn btn-support ui-btn-blue pull-right mt10 <if condition="($vo.support_full eq 1)">ui-btn-disabled</if>"><if condition="($vo.support_full eq 1)">限额已满<else />支持</if></a>
                                    </if>
                                </div>
                                <h1>{$vo.title}</h1>
                                <p class="mb20">{$vo.description|nl2br}</p>
                                <p><if condition="($vo.limit_user eq 0)">不限购买人数<else />限额<span class="fc-red">{$vo.limit_user}</span>位，剩余<span class="fc-red">{$vo.limit_remain}</span>位</if></p>
                                <!--<div class="img"><img src="/images/home/upload/touxiang.jpg"></div>-->
                                <p class="fc9 mt10 mb5">预计回报发放时间:项目成功结束后{$vo.repaid_day}天</p>
                                <p class="fc9"><if condition="($vo.is_delivery eq 1)"><if condition="($vo.delivery_fee gt 0)">¥{$vo.delivery_fee|round=2}<else />全国包邮</if><else />不需要配送</if></p>
                        </div>
                        </volist>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-8">
            <div class="detail-wrap">
                <div class="detail-sum clearfix p10 mb20">
                    <div class="sum-title pull-left mr10">
                        <p>项目简介</p>
                    </div>
                    <div class="sum-text p20">
                        {$deal_info.brief}
                    </div>
                </div>
                <div class="detail-content">
                    <div class="detail-index mb20">
                        <ul class="clearfix wrap-detail-tabs">
                            <li><a href="/deal/show/?id={$deal_info.id}">项目主页</a><i class="glyphicon glyphicon-arrow-down detail-tabs-icon"></i></li>
                            <li><a href="/deal/status/?id={$deal_info.id}">项目状态 </a><i class="glyphicon glyphicon-arrow-down detail-tabs-icon"></i></li>
                            <li><a href="/deal/comment/?id={$deal_info.id}">咨询评论</a><i class="glyphicon glyphicon-arrow-down detail-tabs-icon"></i></li>
                            <li><a href="/deal/intro/?id={$deal_info.id}">自我介绍 </a><i class="glyphicon glyphicon-arrow-down detail-tabs-icon"></i></li>
                        </ul>
                        <div class="wrap-share">
                            <!-- JiaThis Button BEGIN -->
                            <div class="jiathis_style">
                                <a class="jiathis_button_qzone"></a>
                                <a class="jiathis_button_tsina"></a>
                                <a class="jiathis_button_weixin"></a>
                                <a class="jiathis_button_renren"></a>
                                <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
                                <a class="jiathis_counter_style"></a>
                            </div>
                            <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
                            <!-- JiaThis Button END -->
                        </div>

                        <div class="question-main">
                            <ul>
                                <volist name="list" id="vo">
                                <li>
                                    <p class="question"><i class="glyphicon glyphicon-question-sign"></i> {$vo.question}</p>
                                    <p class="answer">{$vo.answer}</p>
                                </li>
                                </volist>
                            </ul>
                        </div>

                    </div>
                </div>
            </div>
        </div>


        <include file="right_content" />
    </div>


</div>
</div>
<include file="common/footer" />